package tests

import "gitee.com/captials-team/ubdframe/src/common/utils"

type Person struct {
	Id      int64  `json:"id"`
	Name    string `json:"name"`    //姓名
	Age     int    `json:"age"`     //年龄
	Address string `json:"address"` //地址
}

func NewPerson() *Person {
	return &Person{
		Id:      utils.TrueScopeRand(int64(1), 1000),
		Name:    utils.RandCode(1, []string{"Bob", "San", "Lily", "Annie", "Owen", "Fans"}),
		Age:     utils.TrueScopeRand(15, 18),
		Address: "--",
	}
}
